<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>商品列表</title>
</head>
<body>
<h3>报价单</h3>
<table cellpadding="2" cellspacing="0" border="1px" style="border:1px solid #333;border-collapse: collapse">
<tr>
	<th>序号</th>
	<th>名称</th>
	<th>链接</th>
	<th>市场价</th>
	<th>商城价</th>
</tr>
<c:forEach items="${products}" var="product" varStatus="status">
	<tr>
		<td>
		${status.index+1 }
		</td>
		<td>
		<a href="${product.link }" target="_blank">${product.name }</a>
		</td>
		<td>
		${product.link }
		</td>
		<td>
		${product.price }
		</td>
		<td>
		<c:if test="${param.type eq 'amazon'}">
			${product.priceImg }
		</c:if>
		<c:if test="${param.type eq 'jingdong'}">
			<img src="${product.priceImg }" border="0"/>
		</c:if>
		
		</td>
	</tr>
</c:forEach>
</table>
</body>
</html>